package com.gillion.business.model;

import com.gfa4j.mybatis.model.BaseExample;
import java.util.ArrayList;
import java.util.List;

public class SysRoleAclExample extends BaseExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysRoleAclExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAclConditionIdIsNull() {
            addCriterion("ACL_CONDITION_ID is null");
            return (Criteria) this;
        }

        public Criteria andAclConditionIdIsNotNull() {
            addCriterion("ACL_CONDITION_ID is not null");
            return (Criteria) this;
        }

        public Criteria andAclConditionIdEqualTo(String value) {
            addCriterion("ACL_CONDITION_ID =", value, "aclConditionId");
            return (Criteria) this;
        }

        public Criteria andAclConditionIdNotEqualTo(String value) {
            addCriterion("ACL_CONDITION_ID <>", value, "aclConditionId");
            return (Criteria) this;
        }

        public Criteria andAclConditionIdGreaterThan(String value) {
            addCriterion("ACL_CONDITION_ID >", value, "aclConditionId");
            return (Criteria) this;
        }

        public Criteria andAclConditionIdGreaterThanOrEqualTo(String value) {
            addCriterion("ACL_CONDITION_ID >=", value, "aclConditionId");
            return (Criteria) this;
        }

        public Criteria andAclConditionIdLessThan(String value) {
            addCriterion("ACL_CONDITION_ID <", value, "aclConditionId");
            return (Criteria) this;
        }

        public Criteria andAclConditionIdLessThanOrEqualTo(String value) {
            addCriterion("ACL_CONDITION_ID <=", value, "aclConditionId");
            return (Criteria) this;
        }

        public Criteria andAclConditionIdLike(String value) {
            addCriterion("ACL_CONDITION_ID like", value, "aclConditionId");
            return (Criteria) this;
        }

        public Criteria andAclConditionIdNotLike(String value) {
            addCriterion("ACL_CONDITION_ID not like", value, "aclConditionId");
            return (Criteria) this;
        }

        public Criteria andAclConditionIdIn(List<String> values) {
            addCriterion("ACL_CONDITION_ID in", values, "aclConditionId");
            return (Criteria) this;
        }

        public Criteria andAclConditionIdNotIn(List<String> values) {
            addCriterion("ACL_CONDITION_ID not in", values, "aclConditionId");
            return (Criteria) this;
        }

        public Criteria andAclConditionIdBetween(String value1, String value2) {
            addCriterion("ACL_CONDITION_ID between", value1, value2, "aclConditionId");
            return (Criteria) this;
        }

        public Criteria andAclConditionIdNotBetween(String value1, String value2) {
            addCriterion("ACL_CONDITION_ID not between", value1, value2, "aclConditionId");
            return (Criteria) this;
        }

        public Criteria andRoleIdIsNull() {
            addCriterion("ROLE_ID is null");
            return (Criteria) this;
        }

        public Criteria andRoleIdIsNotNull() {
            addCriterion("ROLE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andRoleIdEqualTo(String value) {
            addCriterion("ROLE_ID =", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotEqualTo(String value) {
            addCriterion("ROLE_ID <>", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdGreaterThan(String value) {
            addCriterion("ROLE_ID >", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdGreaterThanOrEqualTo(String value) {
            addCriterion("ROLE_ID >=", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdLessThan(String value) {
            addCriterion("ROLE_ID <", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdLessThanOrEqualTo(String value) {
            addCriterion("ROLE_ID <=", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdLike(String value) {
            addCriterion("ROLE_ID like", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotLike(String value) {
            addCriterion("ROLE_ID not like", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdIn(List<String> values) {
            addCriterion("ROLE_ID in", values, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotIn(List<String> values) {
            addCriterion("ROLE_ID not in", values, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdBetween(String value1, String value2) {
            addCriterion("ROLE_ID between", value1, value2, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotBetween(String value1, String value2) {
            addCriterion("ROLE_ID not between", value1, value2, "roleId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdIsNull() {
            addCriterion("ACL_TABLE_ID is null");
            return (Criteria) this;
        }

        public Criteria andAclTableIdIsNotNull() {
            addCriterion("ACL_TABLE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andAclTableIdEqualTo(String value) {
            addCriterion("ACL_TABLE_ID =", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdNotEqualTo(String value) {
            addCriterion("ACL_TABLE_ID <>", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdGreaterThan(String value) {
            addCriterion("ACL_TABLE_ID >", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdGreaterThanOrEqualTo(String value) {
            addCriterion("ACL_TABLE_ID >=", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdLessThan(String value) {
            addCriterion("ACL_TABLE_ID <", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdLessThanOrEqualTo(String value) {
            addCriterion("ACL_TABLE_ID <=", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdLike(String value) {
            addCriterion("ACL_TABLE_ID like", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdNotLike(String value) {
            addCriterion("ACL_TABLE_ID not like", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdIn(List<String> values) {
            addCriterion("ACL_TABLE_ID in", values, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdNotIn(List<String> values) {
            addCriterion("ACL_TABLE_ID not in", values, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdBetween(String value1, String value2) {
            addCriterion("ACL_TABLE_ID between", value1, value2, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdNotBetween(String value1, String value2) {
            addCriterion("ACL_TABLE_ID not between", value1, value2, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andConditionIsNull() {
            addCriterion("CONDITION is null");
            return (Criteria) this;
        }

        public Criteria andConditionIsNotNull() {
            addCriterion("CONDITION is not null");
            return (Criteria) this;
        }

        public Criteria andConditionEqualTo(String value) {
            addCriterion("CONDITION =", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionNotEqualTo(String value) {
            addCriterion("CONDITION <>", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionGreaterThan(String value) {
            addCriterion("CONDITION >", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionGreaterThanOrEqualTo(String value) {
            addCriterion("CONDITION >=", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionLessThan(String value) {
            addCriterion("CONDITION <", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionLessThanOrEqualTo(String value) {
            addCriterion("CONDITION <=", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionLike(String value) {
            addCriterion("CONDITION like", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionNotLike(String value) {
            addCriterion("CONDITION not like", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionIn(List<String> values) {
            addCriterion("CONDITION in", values, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionNotIn(List<String> values) {
            addCriterion("CONDITION not in", values, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionBetween(String value1, String value2) {
            addCriterion("CONDITION between", value1, value2, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionNotBetween(String value1, String value2) {
            addCriterion("CONDITION not between", value1, value2, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionSqlIsNull() {
            addCriterion("CONDITION_SQL is null");
            return (Criteria) this;
        }

        public Criteria andConditionSqlIsNotNull() {
            addCriterion("CONDITION_SQL is not null");
            return (Criteria) this;
        }

        public Criteria andConditionSqlEqualTo(String value) {
            addCriterion("CONDITION_SQL =", value, "conditionSql");
            return (Criteria) this;
        }

        public Criteria andConditionSqlNotEqualTo(String value) {
            addCriterion("CONDITION_SQL <>", value, "conditionSql");
            return (Criteria) this;
        }

        public Criteria andConditionSqlGreaterThan(String value) {
            addCriterion("CONDITION_SQL >", value, "conditionSql");
            return (Criteria) this;
        }

        public Criteria andConditionSqlGreaterThanOrEqualTo(String value) {
            addCriterion("CONDITION_SQL >=", value, "conditionSql");
            return (Criteria) this;
        }

        public Criteria andConditionSqlLessThan(String value) {
            addCriterion("CONDITION_SQL <", value, "conditionSql");
            return (Criteria) this;
        }

        public Criteria andConditionSqlLessThanOrEqualTo(String value) {
            addCriterion("CONDITION_SQL <=", value, "conditionSql");
            return (Criteria) this;
        }

        public Criteria andConditionSqlLike(String value) {
            addCriterion("CONDITION_SQL like", value, "conditionSql");
            return (Criteria) this;
        }

        public Criteria andConditionSqlNotLike(String value) {
            addCriterion("CONDITION_SQL not like", value, "conditionSql");
            return (Criteria) this;
        }

        public Criteria andConditionSqlIn(List<String> values) {
            addCriterion("CONDITION_SQL in", values, "conditionSql");
            return (Criteria) this;
        }

        public Criteria andConditionSqlNotIn(List<String> values) {
            addCriterion("CONDITION_SQL not in", values, "conditionSql");
            return (Criteria) this;
        }

        public Criteria andConditionSqlBetween(String value1, String value2) {
            addCriterion("CONDITION_SQL between", value1, value2, "conditionSql");
            return (Criteria) this;
        }

        public Criteria andConditionSqlNotBetween(String value1, String value2) {
            addCriterion("CONDITION_SQL not between", value1, value2, "conditionSql");
            return (Criteria) this;
        }

        public Criteria andCrudTypeIsNull() {
            addCriterion("CRUD_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andCrudTypeIsNotNull() {
            addCriterion("CRUD_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andCrudTypeEqualTo(Byte value) {
            addCriterion("CRUD_TYPE =", value, "crudType");
            return (Criteria) this;
        }

        public Criteria andCrudTypeNotEqualTo(Byte value) {
            addCriterion("CRUD_TYPE <>", value, "crudType");
            return (Criteria) this;
        }

        public Criteria andCrudTypeGreaterThan(Byte value) {
            addCriterion("CRUD_TYPE >", value, "crudType");
            return (Criteria) this;
        }

        public Criteria andCrudTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("CRUD_TYPE >=", value, "crudType");
            return (Criteria) this;
        }

        public Criteria andCrudTypeLessThan(Byte value) {
            addCriterion("CRUD_TYPE <", value, "crudType");
            return (Criteria) this;
        }

        public Criteria andCrudTypeLessThanOrEqualTo(Byte value) {
            addCriterion("CRUD_TYPE <=", value, "crudType");
            return (Criteria) this;
        }

        public Criteria andCrudTypeIn(List<Byte> values) {
            addCriterion("CRUD_TYPE in", values, "crudType");
            return (Criteria) this;
        }

        public Criteria andCrudTypeNotIn(List<Byte> values) {
            addCriterion("CRUD_TYPE not in", values, "crudType");
            return (Criteria) this;
        }

        public Criteria andCrudTypeBetween(Byte value1, Byte value2) {
            addCriterion("CRUD_TYPE between", value1, value2, "crudType");
            return (Criteria) this;
        }

        public Criteria andCrudTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("CRUD_TYPE not between", value1, value2, "crudType");
            return (Criteria) this;
        }

        public Criteria andAclConditionIdLikeInsensitive(String value) {
            addCriterion("upper(ACL_CONDITION_ID) like", value.toUpperCase(), "aclConditionId");
            return (Criteria) this;
        }

        public Criteria andRoleIdLikeInsensitive(String value) {
            addCriterion("upper(ROLE_ID) like", value.toUpperCase(), "roleId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdLikeInsensitive(String value) {
            addCriterion("upper(ACL_TABLE_ID) like", value.toUpperCase(), "aclTableId");
            return (Criteria) this;
        }

        public Criteria andConditionLikeInsensitive(String value) {
            addCriterion("upper(CONDITION) like", value.toUpperCase(), "condition");
            return (Criteria) this;
        }

        public Criteria andConditionSqlLikeInsensitive(String value) {
            addCriterion("upper(CONDITION_SQL) like", value.toUpperCase(), "conditionSql");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}